-
Notifications
You must be signed in to change notification settings - Fork 7
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
Support multiple Actual server versions at once #57
Comments
Why not just support the latest version? If you want a older version you can just use an older version of actualpy |
@rodriguestiago0 this is what I'm currently doing, the issue with just reverting to an older version is that I don't actually label them so, so it's hard to know to which version you should revert to. But for sure I'm not considering implementing this in the near future, because the challenge is quite big, since i would have to modify how sqlalchemy emits queries. |
Can we release it with the api latest version? |
Maybe I did not understand what you meant, but you suggested releasing the supported Actual APIs versions on the releases page? |
Create a new release for the latest actual budget version.
|
I believe the current version already supports latest 24.11.0. The only change I did since then was the optimization when redownloading the files. |
I’m using the latest version and I’m getting an error.
|
The latest version was released before the 24.11.0 was released.
|
Could you provide details in a new issue? Seems like a bug to me. |
""Actual found a column not supported by the library: column 'Name' at
table 'payees' not found\n""
|
I assumed you typed this by hand since the upper case should not be there for 'Name'. Could you open an issue and place s reproducible script of what you are trying to do? |
No, I'm using https://github.com/bobokun/actualtap-py and I'm getting this error |
"Actual found a column not supported by the library: column 'Name' at table 'payees' not found\n" |
@rodriguestiago0 are you able to check the version of the library by importing it in your script? import actual
print(actual.__version__) If that is the latest version I would need to know which row change is failing. |
Version: 0.7.0 How can I know the row? |
You can update the print slighly on the part that is failing:
But I believe that this will not be helpful, as it seems to me like the column somehow got corrupted due to some other issue with actual. Can you try resetting the budget sync like described in the docs https://actualbudget.org/docs/settings/#reset-sync and see if that helps? |
Description
As described in #51 (comment), mhe main issue is that I intended to support multiple versions on Actual, but sqlalchemy emit statements for all columns when doing an insert. For example, when inserting a payee:
This code works fine for actual 24.8.0, but not on 24.7.0, because there the column
favorite
does not exist. I tried using sqlalchemy deferred column but that is only effective on selects, not inserts.This is extremely annoying because I then need either:
I like the second idea more, but it's a bit difficult to implement.
The text was updated successfully, but these errors were encountered: