server.py中tzlocal移至/task内
All checks were successful
ci/woodpecker/push/check_format Pipeline was successful
All checks were successful
ci/woodpecker/push/check_format Pipeline was successful
This commit is contained in:
parent
87a076ef41
commit
d73019db88
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,6 @@ from threading import Thread
|
||||||
from flask import Flask, abort, request, send_file, send_from_directory
|
from flask import Flask, abort, request, send_file, send_from_directory
|
||||||
from flask_cors import CORS
|
from flask_cors import CORS
|
||||||
from flask_sock import Sock
|
from flask_sock import Sock
|
||||||
from tzlocal import get_localzone
|
|
||||||
from werkzeug.exceptions import NotFound
|
from werkzeug.exceptions import NotFound
|
||||||
from werkzeug.security import safe_join
|
from werkzeug.security import safe_join
|
||||||
|
|
||||||
|
@ -675,6 +674,7 @@ def get_scheduler_tasks():
|
||||||
def get_count():
|
def get_count():
|
||||||
if request.method == "POST":
|
if request.method == "POST":
|
||||||
import pytz
|
import pytz
|
||||||
|
from tzlocal import get_localzone
|
||||||
|
|
||||||
from mower.data import agent_list
|
from mower.data import agent_list
|
||||||
from mower.utils.operators import SkillUpgradeSupport
|
from mower.utils.operators import SkillUpgradeSupport
|
||||||
|
|
Loading…
Add table
Reference in a new issue