File tree Expand file tree Collapse file tree 4 files changed +10
-18
lines changed Expand file tree Collapse file tree 4 files changed +10
-18
lines changed Original file line number Diff line number Diff line change 1- # -*- coding: utf-8 -*-
2-
3-
41"""
52 nycpython.src
63 ~~~~~~~~~~~~~
74
85 Main project
96
107"""
11-
12-
13- import os
14-
15-
16- MEETUP_API_KEY = os .environ .get ('MEETUP_API_KEY' )
17-
18-
19- GROUP_ID = 263790 # That the NYCPython Meetup Group ID
20-
21-
22- GROUP_URL = 'http://www.meetup.com/nycpython/'
Original file line number Diff line number Diff line change 66
77SECRET_KEY = b'\x7f \xeb t.Y\xea \xd5 \x19 "\x1f tu5\x9d \xaa .FD\xac 5\xbc \x86 \xe7 c=\xc5 _\xfe \xf5 \x96 \x1e H' # NOQA
88
9+ MEETUP_API_KEY = os .environ .get ('MEETUP_API_KEY' )
10+ GROUP_ID = 263790 # The NYCPython Meetup Group ID
11+ GROUP_URL = 'http://www.meetup.com/nycpython/'
12+
913SQLALCHEMY_DATABASE_URI = \
1014 'postgresql://nycpython:nycpython@localhost:5432/nycpython'
1115TEMPLATE_FOLDER = os .path .join (PROJECT_ROOT , 'templates' )
Original file line number Diff line number Diff line change 1414
1515import requests
1616
17- from src import MEETUP_API_KEY
17+ from core .app import app
18+ MEETUP_API_KEY = app .config ['MEETUP_API_KEY' ]
1819
1920
2021class MeetupAPIError (Exception ):
Original file line number Diff line number Diff line change 1212
1313from datetime import datetime
1414
15- from src import GROUP_ID , GROUP_URL
16- from src .services .meetup import MeetupAPIRequest
15+ from core .app import app
16+ GROUP_ID = app .config ['GROUP_ID' ]
17+ GROUP_URL = app .config ['GROUP_URL' ]
18+ from services .meetup import MeetupAPIRequest
1719
1820
1921RECURRING_TAG = '#recurring'
You can’t perform that action at this time.
0 commit comments