diff options
author | 2017-01-22 13:07:52 +0100 | |
---|---|---|
committer | 2017-01-22 13:23:56 +0100 | |
commit | e8f79bda15a675e5802b0daad41144b082d20247 (patch) | |
tree | 44148e403a26b8d4c6c9118b8ffc4ee44ce5149e | |
parent | sync: Use dict comprehension in sync_categories as well (diff) | |
download | grumpy-e8f79bda15a675e5802b0daad41144b082d20247.tar.gz grumpy-e8f79bda15a675e5802b0daad41144b082d20247.tar.bz2 grumpy-e8f79bda15a675e5802b0daad41144b082d20247.zip |
sync: sort imports according to PEP8
-rw-r--r-- | backend/lib/sync.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/backend/lib/sync.py b/backend/lib/sync.py index c837c23..5e8240d 100644 --- a/backend/lib/sync.py +++ b/backend/lib/sync.py @@ -1,7 +1,9 @@ -import xml.etree.ElementTree as ET -import requests import time +import xml.etree.ElementTree as ET from datetime import datetime + +import requests + from .. import app, db from .models import Category, Maintainer, Package, PackageVersion @@ -10,6 +12,7 @@ proj_url = "https://api.gentoo.org/metastructure/projects.xml" pkg_url_base = "https://packages.gentoo.org/" http_session = requests.session() + def get_project_data(): projects = {} data = http_session.get(proj_url) |