Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
main.SetDefaultFeeds Class Reference
Inheritance diagram for main.SetDefaultFeeds:

Public Member Functions

 get (self)
 

Detailed Description

Definition at line 400 of file main.py.

Member Function Documentation

◆ get()

main.SetDefaultFeeds.get (   self)

Definition at line 403 of file main.py.

403 def get(self):
404 user = users.get_current_user()
405 prefs = UserData.get_or_insert(user.user_id())
406
407 prefs.sections = [
408 db.Key.from_path('Section', 'user/17857667084667353155/label/Top'),
409 db.Key.from_path('Section',
410 'user/17857667084667353155/label/Design'),
411 db.Key.from_path('Section', 'user/17857667084667353155/label/Eco'),
412 db.Key.from_path('Section', 'user/17857667084667353155/label/Geek'),
413 db.Key.from_path('Section',
414 'user/17857667084667353155/label/Google'),
415 db.Key.from_path('Section',
416 'user/17857667084667353155/label/Seattle'),
417 db.Key.from_path('Section', 'user/17857667084667353155/label/Tech'),
418 db.Key.from_path('Section', 'user/17857667084667353155/label/Web')
419 ]
420
421 prefs.put()
422
423 self.redirect('/')
424
425

The documentation for this class was generated from the following file: