|
|
@@ -3,6 +3,7 @@ |
|
|
|
from flask import Flask, render_template, request, make_response, send_from_directory |
|
|
|
from pywebpush import webpush, WebPushException |
|
|
|
import json |
|
|
|
import sys |
|
|
|
import time |
|
|
|
import threading |
|
|
|
|
|
|
@@ -90,4 +91,6 @@ def push(): |
|
|
|
|
|
|
|
# (C) START |
|
|
|
if __name__ == "__main__": |
|
|
|
if len(sys.argv) == 2: |
|
|
|
HOST_PORT = int(sys.argv[1]) |
|
|
|
app.run(HOST_NAME, HOST_PORT) |