Skip to content

Commit

Permalink
aioqzone v14 refactor (#122)
Browse files Browse the repository at this point in the history
* refactor!: update to aioqzone 0.14.1

* docs: update docs after refactor

* test: fix LoginError after refactor

* build(deps): pin aioqzone

* lock

* test: fix wrong mock attr in h5

* test: fix common manager not using env order

---------

Co-authored-by: JamzumSum <[email protected]>
  • Loading branch information
github-actions[bot] and JamzumSum authored Aug 15, 2023
1 parent 7ec7b95 commit 3a86146
Show file tree
Hide file tree
Showing 27 changed files with 784 additions and 1,017 deletions.
10 changes: 0 additions & 10 deletions doc/source/event/index.rst

This file was deleted.

2 changes: 1 addition & 1 deletion doc/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ feeds fetched by Qzone API. `aioqzone-feed` could be regarded as a set of high-l
:caption: Contents

api/index
event/index
message/index
type


Expand Down
7 changes: 5 additions & 2 deletions doc/source/locale/zh_CN/LC_MESSAGES/api/feed.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: aioqzone-feed \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-03-17 22:36+0800\n"
"POT-Creation-Date: 2023-08-10 14:10+0800\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: zh_CN\n"
Expand Down Expand Up @@ -190,7 +190,7 @@ msgstr ""

#: aioqzone_feed.api.feed.h5.FeedH5Api.new_batch:5 aioqzone_feed.api.feed.web.FeedWebApi.new_batch:5
#: of
msgid ":obj:`FeedEvent.TY_BID`"
msgid ":obj:`TY_BID`"
msgstr ""

#: aioqzone_feed.api.feed.h5.FeedH5Api.new_batch:6 aioqzone_feed.api.feed.web.FeedWebApi.new_batch:6
Expand Down Expand Up @@ -230,3 +230,6 @@ msgstr ""

#~ msgid "max error time exceeds"
#~ msgstr ""

#~ msgid ":obj:`FeedEvent.TY_BID`"
#~ msgstr ""
84 changes: 22 additions & 62 deletions doc/source/locale/zh_CN/LC_MESSAGES/api/heartbeat.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: aioqzone-feed \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-03-27 09:41+0800\n"
"POT-Creation-Date: 2023-08-10 14:10+0800\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: zh_CN\n"
Expand All @@ -23,67 +23,6 @@ msgstr ""
msgid "Heartbeat API"
msgstr ""

#: aioqzone_feed.api.heartbeat.HeartbeatApi.add_heartbeat:1 of
msgid ""
"A helper function that creates a heartbeat task and keep a ref of it. A heartbeat task is a "
"timer that circularly calls `.heartbeat_refresh`."
msgstr ""

#: aioqzone_feed.api.heartbeat.HeartbeatApi.add_heartbeat of
msgid "参数"
msgstr ""

#: aioqzone_feed.api.heartbeat.HeartbeatApi.add_heartbeat:5 of
msgid "heartbeat interval, defaults to 300."
msgstr ""

#: aioqzone_feed.api.heartbeat.HeartbeatApi.add_heartbeat:7 of
msgid "timer name"
msgstr ""

#: aioqzone_feed.api.heartbeat.HeartbeatApi.add_heartbeat
#: aioqzone_feed.api.heartbeat.HeartbeatApi.heartbeat_refresh of
msgid "返回"
msgstr ""

#: aioqzone_feed.api.heartbeat.HeartbeatApi.add_heartbeat:8 of
msgid "the heartbeat task"
msgstr ""

#: aioqzone_feed.api.heartbeat.HeartbeatApi.heartbeat_refresh:1 of
msgid ""
"A wrapper function that calls :obj:`hb_api` and handles all kinds of excpetions raised during "
"heartbeat."
msgstr ""

#: aioqzone_feed.api.heartbeat.HeartbeatApi.heartbeat_refresh:5 of
msgid ""
"This method calls heartbeat **ONLY ONCE** so it should be called periodically by using "
"`.add_heartbeat` or other timer/scheduler."
msgstr ""

#: aioqzone_feed.api.heartbeat.HeartbeatApi.heartbeat_refresh:10 of
msgid "do not retry, just call heartbeat once"
msgstr ""

#: aioqzone_feed.api.heartbeat.HeartbeatApi.heartbeat_refresh:12 of
msgid ""
"whether the timer is suggested to be stopped, means heartbeat might not success even after a "
"retry, until underlying causes are solved."
msgstr ""

#: aioqzone_feed.api.heartbeat.HeartbeatApi.stop:1 of
msgid "Clear **all** registered tasks. All tasks will be CANCELLED if not finished."
msgstr ""

#: aioqzone_feed.api.heartbeat.HeartbeatApi.stop of
msgid "返回类型"
msgstr ""

#: aioqzone_feed.api.heartbeat.HeartbeatApi.stop:4 of
msgid ":py:obj:`None`"
msgstr ""

#~ msgid ""
#~ "A wrapper function that calls "
#~ ":external:meth:`aioqzone.api.DummyQapi.get_feeds_count` and handles all "
Expand Down Expand Up @@ -146,3 +85,24 @@ msgstr ""

#~ msgid ":py:obj:`None`"
#~ msgstr ""

#~ msgid ""
#~ "A wrapper function that calls :obj:`hb_api` and "
#~ "handles all kinds of excpetions raised during "
#~ "heartbeat."
#~ msgstr ""

#~ msgid ""
#~ "This method calls heartbeat **ONLY ONCE** so it "
#~ "should be called periodically by using `.add_heartbeat`"
#~ " or other timer/scheduler."
#~ msgstr ""

#~ msgid "do not retry, just call heartbeat once"
#~ msgstr ""

#~ msgid ""
#~ "whether the timer is suggested to be stopped, "
#~ "means heartbeat might not success even after a "
#~ "retry, until underlying causes are solved."
#~ msgstr ""
221 changes: 0 additions & 221 deletions doc/source/locale/zh_CN/LC_MESSAGES/event/index.po

This file was deleted.

Loading

0 comments on commit 3a86146

Please sign in to comment.