Stellaris

Stellaris

Stellaris Dashboard
FebHare 17 Nov, 2018 @ 7:53am
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.
< >
Showing 1-2 of 2 comments
blubblubblobb  [developer] 17 Nov, 2018 @ 11:10am 
Thanks! Your solution is correct. It was just a stupid typo. :)
Last edited by blubblubblobb; 17 Nov, 2018 @ 11:11am
blubblubblobb  [developer] 17 Nov, 2018 @ 11:16am 
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 :)
Last edited by blubblubblobb; 17 Nov, 2018 @ 11:20am
< >
Showing 1-2 of 2 comments
Per page: 1530 50