adds ending time to activity indicator
This commit is contained in:
@@ -205,4 +205,11 @@ def register_api(app):
|
||||
return jsonify({"scraping_active": True})
|
||||
else:
|
||||
current_app.logger.debug("Scraping is not active.")
|
||||
return jsonify({"scraping_active": False})
|
||||
return jsonify({"scraping_active": False})
|
||||
|
||||
@app.route('/scraping_get_end_time')
|
||||
def scraping_get_end_time():
|
||||
if scraper is None:
|
||||
current_app.logger.debug("Scraper is not initialized.")
|
||||
return jsonify({"scraping_active":False})
|
||||
return jsonify({"end_time": scraper.end_time})
|
||||
Reference in New Issue
Block a user