Skip to content

Commit

Permalink
fix: Remove obsolete/vulnerable dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
argysamo committed May 29, 2022
1 parent 875ecc0 commit 71b7e5d
Show file tree
Hide file tree
Showing 31 changed files with 281,704 additions and 2,707 deletions.
2 changes: 2 additions & 0 deletions bin/read.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from edam.reader.resolvers.resolver_factory import ResolverFactory
from edam import SERVER
from edam.utilities.decorators import timer
from edam.utilities.utilities import verify_database
from edam.viewer.app.views import app


Expand Down Expand Up @@ -36,4 +37,5 @@ def cli(input_file, template, metadata, var, drop):


if __name__ == '__main__':
verify_database()
cli()
11 changes: 1 addition & 10 deletions bin/viewer.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
from edam.reader.models.database import recreate_database

from edam import SERVER
from edam.utilities.utilities import verify_database
from edam.viewer.app.views import app
from edam import database_url
import os


def run():
Expand All @@ -12,12 +9,6 @@ def run():
app.run(host=SERVER['host'], port=SERVER['port'], debug=SERVER['debug'])


def verify_database():
if database_url.drivername == 'sqlite':
if not os.path.isfile(database_url.database):
recreate_database()


if __name__ == "__main__":
verify_database()
run()
Loading

0 comments on commit 71b7e5d

Please sign in to comment.