diff --git a/app/app.py b/app/app.py index d1ce0ff..50353a8 100644 --- a/app/app.py +++ b/app/app.py @@ -10,8 +10,6 @@ from sqlalchemy.orm import scoped_session,sessionmaker from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.sql import text -import git - config = configparser.ConfigParser() config.read('config.ini') @@ -28,9 +26,6 @@ db = scoped_session(sessionmaker(bind=engine)) Base = declarative_base() -repo = git.Repo(search_parent_directories=True) -sha = repo.head.object.hexsha - class User(Base): __tablename__ = 'users' id = Column(Integer, primary_key=True) @@ -110,7 +105,7 @@ def register(): {"username": username, "password": password}) db.commit() return redirect('/auth/login/') # redirect to login page after successful registration - return render_template('register.j2', instanceLocation=instanceLocation, instanceBranding=instanceBranding, commit=str(sha)) + return render_template('register.j2', instanceLocation=instanceLocation, instanceBranding=instanceBranding) @app.route('/auth/logout/') def logout(): diff --git a/app/templates/about.j2 b/app/templates/about.j2 index bada6e2..f5a5321 100644 --- a/app/templates/about.j2 +++ b/app/templates/about.j2 @@ -12,7 +12,7 @@ NyxAsk at {{ instanceBranding }}
- NyxAsk version {{ version }} (commit {{ commit }}) + NyxAsk version {{ version }} (commit TODO)
Source code: https://git.everypizza.im/n/nyxask/ diff --git a/requirements.txt b/requirements.txt index 2f4e86f..3b5a9d0 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,3 @@ flask flask-sqlalchemy -psycopg2 -gitpython \ No newline at end of file +psycopg2 \ No newline at end of file diff --git a/shell.nix b/shell.nix index 51c1ed5..8ba2e7e 100644 --- a/shell.nix +++ b/shell.nix @@ -7,7 +7,6 @@ in pkgs.mkShell { flask flask-sqlalchemy psycopg2 - gitpython ])) ]; } \ No newline at end of file