Skip to content

Commit

Permalink
BUG: 修复错误
Browse files Browse the repository at this point in the history
 - 库路径引用
 - 日志输出
  • Loading branch information
7Wate committed Nov 6, 2023
1 parent d163726 commit d87f2bb
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
from flask import Flask, render_template, redirect, url_for
from loguru import logger

import const
import models
import tools
from config import Config
from generator import Generator
from src import const
from src import models
from src import tools
from src.config import Config
from src.generator import Generator

app = Flask(__name__)
logger.add("endofyear.log")
Expand Down Expand Up @@ -41,7 +41,6 @@ def painting():
logger.info(f"Sentiment Post: {generator.sentiment_post()}")
logger.info(f"Long Post: {generator.long_post()}")
logger.info(f"Short Post: {generator.short_post()}")
logger.info(f"Custom: {custom}")

# 服务模式
if config.web_status == const.SITE_SERVICE_STATIC:
Expand Down

0 comments on commit d87f2bb

Please sign in to comment.