Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(234)

Unified Diff: app.py

Issue 11970045: Fix failure to write latest_rev updates to database. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/chromium-build
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: app.py
diff --git a/app.py b/app.py
index c15d7dfd7fe6cd31ed7e9297752f96b11531fc34..e634f28ac88874b13cc5c1c36f21aa3fc355e723 100644
--- a/app.py
+++ b/app.py
@@ -268,7 +268,11 @@ def save_row(row_data, localpath):
'comment': None,
'details': None,
}
- save_row(latest_rev_row, 'latest_rev')
+ prev_rev_db = get_or_create_row('latest_rev', rev_number)
+ prev_rev_db.fetch_timestamp = datetime.datetime.now()
+ prev_rev_db.rev_number = rev_number
+ prev_rev_db.put()
+ put_data_into_cache('latest_rev', latest_rev_row)
##########
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698