X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/2c3ba81e19fd6d84ab208ad90a48fd81e4780c29..dcacc3b4c2ba2f550806a2d22b183f6fac4f63ff:/forum_modules/updates/startup.py diff --git a/forum_modules/updates/startup.py b/forum_modules/updates/startup.py index f49d106..06d423c 100644 --- a/forum_modules/updates/startup.py +++ b/forum_modules/updates/startup.py @@ -6,7 +6,7 @@ import settings from xml.dom.minidom import parse, parseString from xml.parsers.expat import ExpatError from forum.modules import ui, decorate -from forum.settings import SVN_REVISION +from forum.settings import VCS_REVISION from django.contrib.auth.middleware import AuthenticationMiddleware from django.core.exceptions import ObjectDoesNotExist from django.utils.encoding import smart_str @@ -26,7 +26,7 @@ def process_request(result, self, request): for message in messages: # Get the SVN Revision try: - svn_revision = int(SVN_REVISION.replace('SVN-', '')) + svn_revision = int(VCS_REVISION.replace('SVN-', '')) except ValueError: # Here we'll have to find another way of getting the SVN revision svn_revision = 0 @@ -50,4 +50,4 @@ def process_request(result, self, request): except ExpatError: pass - return result \ No newline at end of file + return result