Stellaris

Stellaris

Stellaris Dashboard
FebHare 2018 年 11 月 17 日 上午 7:53
Dashboard fails when system name was renamed
Hello, I experienced one more other error.

Error message:
At _history_add_planetary_events function in timeline.py,
"AttributeError: 'Session' object has no attribute 'update'"

My debugging:
It happens when a system is renamed after previous savedata.
Dashboard catches it and try to update with new system name, but failed.
I know very little about get_db_session function, but it sounds this function doesn't have 'update' attribute.

My fix:
I change the attribute to 'add', and Dashboard succeeds to run.
That said, I am not sure it is right solution.
< >
正在显示第 1 - 2 条,共 2 条留言
blubblubblobb  [开发者] 2018 年 11 月 17 日 上午 11:10 
Thanks! Your solution is correct. It was just a stupid typo. :)
最后由 blubblubblobb 编辑于; 2018 年 11 月 17 日 上午 11:11
blubblubblobb  [开发者] 2018 年 11 月 17 日 上午 11:16 
get_db_session gives a SQLAlchemy Session object, which handles all database read/write operations. If you are interested, you can read up on that here: https://docs.sqlalchemy.org/en/latest/orm/session_basics.html#what-does-the-session-do

Anyways, thanks once again for your great bug report :)
最后由 blubblubblobb 编辑于; 2018 年 11 月 17 日 上午 11:20
< >
正在显示第 1 - 2 条,共 2 条留言
每页显示数: 1530 50