1.1 --- a/tools/update_quotas.py Tue Jan 31 16:06:40 2017 +0100
1.2 +++ b/tools/update_quotas.py Tue Jan 31 16:18:55 2017 +0100
1.3 @@ -3,7 +3,7 @@
1.4 """
1.5 Remove expired events from quota journals.
1.6
1.7 -Copyright (C) 2014, 2015, 2016 Paul Boddie <paul@boddie.org.uk>
1.8 +Copyright (C) 2014, 2015, 2016, 2017 Paul Boddie <paul@boddie.org.uk>
1.9
1.10 This program is free software; you can redistribute it and/or modify it under
1.11 the terms of the GNU General Public License as published by the Free Software
1.12 @@ -32,7 +32,7 @@
1.13 sys.path.append(parent)
1.14
1.15 from codecs import getwriter
1.16 -from imiptools import config
1.17 +from imiptools.config import settings
1.18 from imiptools.dates import get_datetime, get_default_timezone, get_time, \
1.19 to_utc_datetime
1.20 from imiptools.stores import get_journal
1.21 @@ -160,7 +160,7 @@
1.22
1.23 getvalue = lambda value, default=None: value and value[0] or default
1.24
1.25 - store_type = getvalue(store_type, config.STORE_TYPE)
1.26 + store_type = getvalue(store_type, settings["STORE_TYPE"])
1.27 journal_dir = getvalue(journal_dir)
1.28 expiry = getvalue(expiry)
1.29