Changeset 43fd35c for src/gnuboat/mapservice_impl/demo/DbSetup.py
- Timestamp:
- Apr 19, 2020, 4:27:01 PM (7 years ago)
- Branches:
- debian/bullseye, master
- Children:
- 2a31181
- Parents:
- 77cd9cf
- File:
-
- 1 moved
-
src/gnuboat/mapservice_impl/demo/DbSetup.py (moved) (moved from src/mapservice/server_impl/demo/DbSetup.py ) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/gnuboat/mapservice_impl/demo/DbSetup.py
r77cd9cf r43fd35c 1 1 ''' 2 Copyright (C) 2019 - 2020 EngSaS - Engineering Solutions and ServicesLangenbach. All rights reserved.2 Copyright (C) 2019 - 2020 EngSaS - Langenbach. All rights reserved. 3 3 4 4 This program is free software: you can redistribute it and/or modify … … 20 20 import flask 21 21 22 from ..database.Model import db, User, ApiKey, Water, OsmType, Gauge, Device, Log, Queue, ProcessingStatus, db_setup 23 from ..tasks.tasks import log_process 22 from gnuboat.mapservice_impl.database.Model import ( 23 db, User, ApiKey, Water, 24 OsmType, Gauge, Device, Log, Queue, ProcessingStatus, db_setup 25 ) 26 from gnuboat.mapservice_impl.tasks.tasks import log_process 24 27 25 28 … … 127 130 location='SRID=4326;POINT(10.0427 48.4275)', 128 131 reference_water_level_gauge_height=0.4, 129 comment= 130 'Level zero is the level of the step where the handrail is fixed.'132 comment=('Level zero is the level of the step ' 133 'where the handrail is fixed.') 131 134 ) 132 135 db.session.add(pfuhlersee_gauge) … … 184 187 db.session.commit() 185 188 186 if not 'CELERY_BROKER_URL' in flask.current_app.config or not flask.current_app.config[ 187 'CELERY_BROKER_URL']: 189 if ('CELERY_BROKER_URL' not in flask.current_app.config or 190 not flask.current_app.config[ 191 'CELERY_BROKER_URL']): 188 192 print('Do not add log, since their is no CELERY_BROKER_URL configured') 189 193 return log
Note:
See TracChangeset
for help on using the changeset viewer.
