from flask import Flask import src.schedule as sch app = Flask(__name__) @app.route('/api/schedule') def home(): print("Start extract keywords schedule task...") sch.run() if __name__ == '__main__': print("Start extract keywords schedule task...") sch.run()
def home(): print("Start extract keywords schedule task...") sch.run()
def home(): sch.run()