コード例 #1
0
ファイル: db_setup.py プロジェクト: richaagarwal/recordtrac
from public_records_portal import app, models, db, db_helpers, departments, prr

models.db.create_all()
db_helpers.create_viz_data()

# Set user data - depends on existence of staff.csv
prr.set_directory_fields()

コード例 #2
0
from public_records_portal import app, models, db_helpers, departments

models.db.create_all()
departments.create_list_depts()
db_helpers.create_viz_data()
コード例 #3
0
ファイル: cron_jobs.py プロジェクト: konklone/recordtrac
from public_records_portal.notifications import notify_due
from public_records_portal.departments import populate_users_with_departments
from public_records_portal.prr import set_directory_fields
from public_records_portal.db_helpers import create_viz_data
from public_records_portal.scribd_helpers import update_descriptions

# Notify city staff via e-mail if they belong to a request that is due soon or overdue:
notify_due()

# Set directory fields from information in the directory.json file
# set_directory_fields()


# Update user info with information in the departments.json file
# populate_users_with_departments()

# Create visualizations
create_viz_data()

# Update the Scribd document descriptions
# update_descriptions()
コード例 #4
0
from public_records_portal.notifications import notify_due
from public_records_portal.departments import populate_users_with_departments
from public_records_portal.prr import set_directory_fields
from public_records_portal.db_helpers import create_viz_data

# Notify city staff via e-mail if they belong to a request that is due soon or overdue:
notify_due()

# Set directory fields from information in the directory.json file
# set_directory_fields()

# Update user info with information in the departments.json file
# populate_users_with_departments()

# Create visualizations
create_viz_data()