Skip to content

Commit

Permalink
feat: use tidb http
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamhunter2333 committed Apr 22, 2024
1 parent 0ac455a commit 0dc884f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/db/tidb_http_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ def awsl_list(cls, uid: str, limit: int, offset: int) -> List[BlobItem]:
" awsl_mblog.re_user_id, awsl_mblog.re_mblogid"
" FROM awsl_blob"
" INNER JOIN awsl_mblog ON awsl_blob.awsl_id=awsl_mblog.id"
f" {f"WHERE awsl_mblog.uid = '{sql_escape(uid)}'" if uid else ""}"
" ORDER BY awsl_blob.awsl_id DESC"
+ (f" WHERE awsl_mblog.uid = '{sql_escape(uid)}'" if uid else "")
+ " ORDER BY awsl_blob.awsl_id DESC"
f" LIMIT {sql_escape(offset)}, {sql_escape(limit)}"
)
res = [BlobItem(
Expand Down

0 comments on commit 0dc884f

Please sign in to comment.