diff --git a/pandora/user/utils.py b/pandora/user/utils.py index 49fa7884..3648b78f 100644 --- a/pandora/user/utils.py +++ b/pandora/user/utils.py @@ -1,4 +1,4 @@ -from django.contrib.gis.geoip2 import GeoIP2, GeoIP2Exception +from django.contrib.gis.geoip2 import GeoIP2, GeoIP2Exception2 import ox diff --git a/update.py b/update.py index 566d23f9..bfa0a019 100755 --- a/update.py +++ b/update.py @@ -316,14 +316,14 @@ if __name__ == "__main__": if exists(path): os.chdir(path) current_branch = get_branch(path) - revno = get_version(path) if repo == 'pandora': pandora_old_revno = revno - current += revno if current_branch != branch: run('git', 'remote', 'set-branches', 'origin', '*') run('git', 'fetch', 'origin') run('git', 'checkout', branch) + revno = get_version(path) + current += revno url = repos[repo]['url'] print('Checking', repo) run('git', 'pull')