allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jetm...@apache.org
Subject [10/28] git commit: [#7480] ticket:610 Add last_access field to scrub-allura-data script
Date Fri, 25 Jul 2014 07:55:13 GMT
[#7480] ticket:610 Add last_access field to scrub-allura-data script


Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/27e3d6ab
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/27e3d6ab
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/27e3d6ab

Branch: refs/heads/je/42cc_7451
Commit: 27e3d6abc9b45c1d6d4dc653bb10b6062befb3e2
Parents: 273dcf2
Author: Igor Bondarenko <jetmind2@gmail.com>
Authored: Thu Jul 17 16:33:19 2014 +0300
Committer: Dave Brondsema <dbrondsema@slashdotmedia.com>
Committed: Mon Jul 21 14:57:47 2014 +0000

----------------------------------------------------------------------
 scripts/scrub-allura-data.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/27e3d6ab/scripts/scrub-allura-data.py
----------------------------------------------------------------------
diff --git a/scripts/scrub-allura-data.py b/scripts/scrub-allura-data.py
index 3864c42..337e8ae 100644
--- a/scripts/scrub-allura-data.py
+++ b/scripts/scrub-allura-data.py
@@ -125,7 +125,10 @@ def main(options):
 
     if not options.dry_run:
         M.EmailAddress.query.remove()
-        M.User.query.update({}, {"$set": {"email_addresses": []}}, multi=True)
+        M.User.query.update({}, {
+            "$set": {"email_addresses": [],
+                     "last_access": {}},
+        }, multi=True)
         DM.Forum.query.update({"monitoring_email": {"$nin": [None, ""]}},
                               {"$set": {"monitoring_email": None}}, multi=True)
     return 0


Mime
View raw message