Skip to content

Commit 8926fef

Browse files
committed
Add elsa script
1 parent 6ef681b commit 8926fef

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
__pycache__/
22
/*.egg-info/
3+
/portingdb/_build
34
/portingdb.sqlite
45
/portingdb.sqlite-shm
56
/portingdb.sqlite-wal

elsasite.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/usr/bin/env python3
2+
import logging
3+
4+
from portingdb import htmlreport
5+
6+
level = logging.INFO
7+
logging.basicConfig(level=level)
8+
9+
sqlite_path = 'portingdb.sqlite'
10+
11+
db_url = 'sqlite:///' + sqlite_path
12+
13+
application = htmlreport.create_app(db_url=db_url, cache_config=None)
14+
15+
if __name__ == '__main__':
16+
from elsa import cli
17+
cli(application, base_url='http://fedora.portingdb.xyz/')

0 commit comments

Comments
 (0)