Skip to content

Commit

Permalink
⚗️ Technical preview
Browse files Browse the repository at this point in the history
- 修正版本记忆。
  • Loading branch information
Lancercmd committed Jul 12, 2024
1 parent 8b6255e commit 09de7e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
elif version != state.get(VER_KEY):
print(f"nonebot2 {state.get(VER_KEY)} -> {version}")
modified = True
state[VER_KEY] = state.get(VER_KEY) or version
state[VER_KEY] = version or state.get(VER_KEY)
for data in plugins:
plugin = Plugin(data)
if not state.get(plugin.project_link):
Expand Down Expand Up @@ -83,7 +83,7 @@
plugin.git_hash,
)
d = {
VER_KEY: state[plugin.project_link].get(VER_KEY) or version,
VER_KEY: version or state[plugin.project_link].get(VER_KEY),
"first_seen": state[plugin.project_link].get("first_seen") or commit,
"module_name": plugin.module_name,
"project_link": plugin.project_link,
Expand Down

0 comments on commit 09de7e4

Please sign in to comment.