Skip to content

Commit

Permalink
🎈 perf: 移除后端版本接口显示
Browse files Browse the repository at this point in the history
  • Loading branch information
kalicyh committed Aug 11, 2024
1 parent 967bed2 commit 5d30de6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
1 change: 0 additions & 1 deletion api/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ class Info(Base):
total_rows = Column(Integer, nullable=True)
client_versions = Column(String(255), nullable=True)
client_filename = Column(String(255), nullable=True)
backend_versions = Column(String(255), nullable=True)

class Number(Base):
__tablename__ = 'numbers'
Expand Down
8 changes: 0 additions & 8 deletions api/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,6 @@ async def get_infos():
"client_filename": info.client_filename
})

@app.post("/backend-tag/", tags=["信息"], description="更新后端版本接口")
async def backend_tag(tag: TagModel):
tag = tag.tag
db = SessionLocal()
update_version_info(db, tag, "backend")
db.close()
return {"message": "Tag stored successfully"}

@app.post("/client-file-tag/", tags=["信息"], description="更新前端版本及上传软件接口")
async def client_file_tag(tag: str, file: UploadFile = File(...)):
db = SessionLocal()
Expand Down

0 comments on commit 5d30de6

Please sign in to comment.