-
Notifications
You must be signed in to change notification settings - Fork 12
Tasking manager geometries #336
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Hey @Matthias-Schaub, |
project.calc_required_results() | ||
# Save project and its groups and tasks to Firebase and Postgres. | ||
project.save_project() | ||
project.save_project |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably a typo: save_project is a function and should therefor be called with parenthesis ()
print(len(data)) | ||
|
||
# save as geojson one by one | ||
for i, project in enumerate(data): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Variable i is never used. Maybe for project in data:
is enough?
try: | ||
geometries = [ogr.CreateGeometryFromWkt(wkt_geom)] | ||
geojson_functions.create_geojson_file(geometries, outfile) | ||
except Exception as e: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
e
is never used: except Exception
is enough.
pass is not needed in the exception. Only if nothing (no printing for example)/ no statement is in the exception clause then pass can be used.
This implements #333
Further it fixes a small bug in setting up the logger.
@Matthias-Schaub could you review this in the coming days?