Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

极简模式因range100个友链会显示message:error start抓取不到所以改成了10,终于可以爬取成功了,但在模型转换出现如下报错 #158

Open
ABCkillmen opened this issue Aug 8, 2024 · 2 comments

Comments

@ABCkillmen
Copy link

ABCkillmen commented Aug 8, 2024

插件版本:我拉取的最新
主题:stellar 1.29
hexo: 6.3.0
hexo-cli: 4.3.2
node: 18.20.4

SYSTEM ERROR
Traceback (most recent call last):
File "/home/runner/work/hexo-circle-of-friends/hexo-circle-of-friends/./hexo_circle_of_friends/utils/simple_mode_transform_json.py", line 23, in
transform()
File "/home/runner/work/hexo-circle-of-friends/hexo-circle-of-friends/./hexo_circle_of_friends/utils/simple_mode_transform_json.py", line 16, in transform
data = sqlapi.query_all(list_, rule="created")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/work/hexo-circle-of-friends/hexo-circle-of-friends/api_dependencies/sql/sqlapi.py", line 51, in query_all
last_update_time = max(x["createAt"].strftime("%Y-%m-%d %H:%M:%S") for x in last_update_time)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/work/hexo-circle-of-friends/hexo-circle-of-friends/api_dependencies/sql/sqlapi.py", line 51, in
last_update_time = max(x["createAt"].strftime("%Y-%m-%d %H:%M:%S") for x in last_update_time)
~^^^^^^^^^^^^
File "lib/sqlalchemy/cyextension/resultproxy.pyx", line 54, in sqlalchemy.cyextension.resultproxy.BaseRow.getitem
TypeError: tuple indices must be integers or slices, not str

@ABCkillmen ABCkillmen changed the title 因range100个友链会显示message:error start抓取不到所以改成了10,终于可以爬取成功了,但在模型转换出现如下报错 极简模式因range100个友链会显示message:error start抓取不到所以改成了10,终于可以爬取成功了,但在模型转换出现如下报错 Aug 8, 2024
@ABCkillmen
Copy link
Author

@Wangijun
Copy link

一样出现了这个问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants