This repository was archived by the owner on Jun 20, 2024. It is now read-only.
File tree 3 files changed +4
-5
lines changed
3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 11
11
12
12
from . import const , exc , util
13
13
14
- __version__ : typing .Final [str ] = "2 .0.0"
14
+ __version__ : typing .Final [str ] = "3 .0.0"
15
15
16
16
17
17
class Awc :
Original file line number Diff line number Diff line change @@ -143,9 +143,8 @@ class AnonMsg(SQLTable):
143
143
tname : str = "anon"
144
144
t : pypika .Table = pypika .Table (tname )
145
145
146
- cid : pypika .Column = t .cid # type: ignore
146
+ ip : pypika .Column = t .ip # type: ignore
147
147
content : pypika .Column = t .content # type: ignore
148
- headers : pypika .Column = t .headers # type: ignore
149
148
150
149
151
150
def sql (query : pypika .queries .QueryBuilder ) -> str :
Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ def get_anon_msg(ip: str) -> typing.List[pypika.queries.QueryBuilder]:
108
108
ip: str -- content id ( ip )
109
109
110
110
return typing.List[pypika.queries.QueryBuilder] -- the queries"""
111
- return [AnonMsg .select (AnonMsg .cid == ip , AnonMsg .content )] # type: ignore
111
+ return [AnonMsg .select (AnonMsg .ip == ip , AnonMsg .content )] # type: ignore
112
112
113
113
114
114
def del_anon_msg (ip : str ) -> typing .List [pypika .queries .QueryBuilder ]:
@@ -117,4 +117,4 @@ def del_anon_msg(ip: str) -> typing.List[pypika.queries.QueryBuilder]:
117
117
ip: str -- content id ( ip )
118
118
119
119
return typing.List[pypika.queries.QueryBuilder] -- the queries"""
120
- return [delete (AnonMsg .query (AnonMsg .cid == ip ))] # type: ignore
120
+ return [delete (AnonMsg .query (AnonMsg .ip == ip ))] # type: ignore
You can’t perform that action at this time.
0 commit comments