add Sns
This commit is contained in:
parent
2539b97fb9
commit
3ea91fb962
@ -32,7 +32,7 @@ class SnsHandler(DatabaseBase):
|
|||||||
"FROM FeedsV20 "
|
"FROM FeedsV20 "
|
||||||
"ORDER BY CreateTime DESC")
|
"ORDER BY CreateTime DESC")
|
||||||
FeedsV20 = self.execute(sql)
|
FeedsV20 = self.execute(sql)
|
||||||
for row in FeedsV20[0:]:
|
for row in FeedsV20[2:]:
|
||||||
(FeedId, CreateTime, FaultId, Type, UserName, Status, ExtFlag, PrivFlag, StringId, Content) = row
|
(FeedId, CreateTime, FaultId, Type, UserName, Status, ExtFlag, PrivFlag, StringId, Content) = row
|
||||||
|
|
||||||
Content = xml2dict(Content) if Content and Content.startswith("<") else Content
|
Content = xml2dict(Content) if Content and Content.startswith("<") else Content
|
||||||
@ -49,8 +49,7 @@ class SnsHandler(DatabaseBase):
|
|||||||
f"{StringId=}\n\n"
|
f"{StringId=}\n\n"
|
||||||
f"{json.dumps(Content, indent=4, ensure_ascii=False)}\n\n"
|
f"{json.dumps(Content, indent=4, ensure_ascii=False)}\n\n"
|
||||||
)
|
)
|
||||||
|
return FeedId, CreateTime, FaultId, Type, UserName, Status, ExtFlag, PrivFlag, StringId, Content
|
||||||
break
|
|
||||||
|
|
||||||
def get_sns_comment(self):
|
def get_sns_comment(self):
|
||||||
pass
|
pass
|
||||||
|
Loading…
Reference in New Issue
Block a user