mirror of
				https://github.com/DarkflameUniverse/NexusDashboard.git
				synced 2025-11-04 14:11:54 +00:00 
			
		
		
		
	Merge pull request #18 from DarkflameUniverse/flask-apscheduler-quiet
quiet warnings by setting timeze
This commit is contained in:
		@@ -35,7 +35,7 @@ def uscore_by_date(date):
 | 
			
		||||
    return render_template('reports/uscore/by_date.html.j2', data=data, date=date)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@scheduler.task("cron", id="gen_item_report", hour=23)
 | 
			
		||||
@scheduler.task("cron", id="gen_item_report", hour=23, timezone="UTC")
 | 
			
		||||
def gen_item_report():
 | 
			
		||||
    try:
 | 
			
		||||
        current_app.logger.info("Start Item Report Generation")
 | 
			
		||||
@@ -83,7 +83,7 @@ def gen_item_report():
 | 
			
		||||
    return
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@scheduler.task("cron", id="gen_currency_report", hour=23)
 | 
			
		||||
@scheduler.task("cron", id="gen_currency_report", hour=23, timezone="UTC")
 | 
			
		||||
def gen_currency_report():
 | 
			
		||||
    try:
 | 
			
		||||
        current_app.logger.info("Start Currency Report Generation")
 | 
			
		||||
@@ -125,7 +125,7 @@ def gen_currency_report():
 | 
			
		||||
    return
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@scheduler.task("cron", id="gen_uscore_report", hour=23)
 | 
			
		||||
@scheduler.task("cron", id="gen_uscore_report", hour=23, timezone="UTC")
 | 
			
		||||
def gen_uscore_report():
 | 
			
		||||
    try:
 | 
			
		||||
        current_app.logger.info("Start U-Score Report Generation")
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user