allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [1/2] allura git commit: [#6560] Add a comment line
Date Thu, 20 Sep 2018 20:21:46 GMT
Repository: allura
Updated Branches:
  refs/heads/master 5ad16d621 -> 1c28d5dc2


[#6560] Add a comment line


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

Branch: refs/heads/master
Commit: 1c28d5dc2965841b192ac6202c8883d989d66fa5
Parents: 3afec2c
Author: Shalitha <shalithasuranga@gmail.com>
Authored: Thu Sep 20 20:03:39 2018 +0530
Committer: Dave Brondsema <dbrondsema@slashdotmedia.com>
Committed: Thu Sep 20 20:20:51 2018 +0000

----------------------------------------------------------------------
 Allura/allura/ext/admin/admin_main.py | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/1c28d5dc/Allura/allura/ext/admin/admin_main.py
----------------------------------------------------------------------
diff --git a/Allura/allura/ext/admin/admin_main.py b/Allura/allura/ext/admin/admin_main.py
index aaa480d..1b61002 100644
--- a/Allura/allura/ext/admin/admin_main.py
+++ b/Allura/allura/ext/admin/admin_main.py
@@ -521,6 +521,7 @@ class ProjectAdminController(BaseController):
             for screen in screenshots:
                 if screen.filename == screenshot.filename:
                     screenshot.filename = re.sub('(.*)\.(.*)', r'\1-' + str(randint(1000,9999))
+ r'.\2', screenshot.filename)
+                    # if filename already exists append a random number
                     break
             M.AuditLog.log('add screenshot')
             sort = 1 + max([ss.sort or 0 for ss in screenshots] or [0])


Mime
View raw message