From 5d169e9719e1ca8096c336accf0317b167444079 Mon Sep 17 00:00:00 2001 From: Miguel BarĂ£o Date: Sat, 20 Apr 2019 17:47:30 +0100 Subject: [PATCH] fixed minimum python version to 3.7 in setuptools --- aprendizations/learnapp.py | 3 ++- setup.py | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/aprendizations/learnapp.py b/aprendizations/learnapp.py index e5ce6ad..54cccad 100644 --- a/aprendizations/learnapp.py +++ b/aprendizations/learnapp.py @@ -117,11 +117,12 @@ class LearnApp(object): if pw_ok: if uid in self.online: logger.warning(f'User "{uid}" already logged in, overwriting') - counter = self.online[uid]['counter'] + counter = self.online[uid]['counter'] # simultaneous logins else: logger.info(f'User "{uid}" logged in') counter = 0 + # get topics of this student and set its current state with self.db_session() as s: tt = s.query(StudentTopic).filter_by(student_id=uid) diff --git a/setup.py b/setup.py index d345ba1..06c13aa 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ from setuptools import setup, find_packages from aprendizations import (__author__, __license__, - APP_NAME, APP_VERSION, APP_DESCRIPTION) + APP_NAME, APP_VERSION, APP_DESCRIPTION) with open("README.md", "r") as f: long_description = f.read() @@ -18,7 +18,7 @@ setup( url="https:USERNAME//bitbucket.org/USERNAME/aprendizations.git", packages=find_packages(), include_package_data=True, # install files from MANIFEST.in - python_requires='>=3.6.*', + python_requires='>=3.7.*', install_requires=[ 'tornado', 'mistune', 'pyyaml', 'pygments', 'sqlalchemy', 'bcrypt', 'networkx' -- libgit2 0.21.2