CrisisCleanup / crisiscleanup-1

[OLD] Legacy Crisis Cleanup on GAE/Python
https://sandy-disaster-recovery.appspot.com
Other
8 stars 4 forks source link

Patch for /trunk/sandy-disaster-recovery/event_db.py #128

Open aarontitus opened 11 years ago

aarontitus commented 11 years ago

Original author: andy.n.g...@gmail.com (January 11, 2013 00:05:45)

when deleting a site, delete_handler now calls event_db.ReduceNumberOfSitesFromEvent(event_id).

This lowers the num_sites property by 1, giving us a more accurate representation of the sites we are handling.

Original issue: http://code.google.com/p/sandy-disaster-recovery/issues/detail?id=128

aarontitus commented 11 years ago

From rostovp...@gmail.com on January 11, 2013 17:44:45 Please don't check this in. num_sites is a hack to generate case numbers, this will result in duplicate case numbers. Also, any modifications to an Event need to use a transactional write.

aarontitus commented 11 years ago

From andy.n.g...@gmail.com on January 12, 2013 01:06:25 Ok to both