elwig-backend: Bump version to 0.0.2
This commit is contained in:
		@@ -15,7 +15,7 @@ import urllib.parse
 | 
			
		||||
import gzip
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
VERSION: str = '0.0.1'
 | 
			
		||||
VERSION: str = '0.0.2'
 | 
			
		||||
 | 
			
		||||
CNX: sqlite3.Cursor
 | 
			
		||||
USER_FILE: str
 | 
			
		||||
@@ -738,11 +738,11 @@ def main() -> None:
 | 
			
		||||
 | 
			
		||||
    parser = argparse.ArgumentParser()
 | 
			
		||||
    parser.add_argument('db', type=str, metavar='DB')
 | 
			
		||||
    parser.add_argument('userfile', type=str, metavar='USER-FILE')
 | 
			
		||||
    parser.add_argument('user_file', type=str, metavar='USER-FILE')
 | 
			
		||||
    parser.add_argument('-p', '--port', type=int, default=8080)
 | 
			
		||||
    args = parser.parse_args()
 | 
			
		||||
 | 
			
		||||
    USER_FILE = args.userfile
 | 
			
		||||
    USER_FILE = args.user_file
 | 
			
		||||
    CNX = sqlite3.connect(f'file:{args.db}?mode=ro', uri=True)
 | 
			
		||||
    CNX.create_function('REGEXP', 2, sqlite_regexp, deterministic=True)
 | 
			
		||||
 | 
			
		||||
@@ -750,8 +750,10 @@ def main() -> None:
 | 
			
		||||
    print(f'Listening on http://localhost:{args.port}')
 | 
			
		||||
    try:
 | 
			
		||||
        server.serve_forever()
 | 
			
		||||
    except InterruptedError:
 | 
			
		||||
        print()
 | 
			
		||||
    except KeyboardInterrupt:
 | 
			
		||||
        pass
 | 
			
		||||
        print()
 | 
			
		||||
    server.server_close()
 | 
			
		||||
    print('Good bye!')
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user