-
Notifications
You must be signed in to change notification settings - Fork 14
Getting an asyncpg naive/aware datetime subtraction issue #20
Comments
Hey, the app is built to expect timezone-aware datetimes everywhere. Maybe the datetimes you have in the database are not timezone-aware? I would go in the direction of trying to make everything timezone-aware rather than timezone-unaware. Note that I was in the middle of refactoring the backend (from Node.js to Python) when I stopped working on the project. So there may be bugs, in the update loop for example. There are also no migrations for the database right now, so you'd have to either set up Alembic (which I want to do eventually) or create the initial tables manually. One other approach, if you just want to get something working, would be to check out a version of the repository that was still using Node.js for the backend. That version has migrations and should be more robust (in certain ways). You can probably see when I started refactoring the backend fairly easily in the git history. Good luck! |
Thanks for the reply! I got around the no migration issue by using |
Posting what the issue was in case other people will be looking to host their own and run into a similar thing or attempt the same things. As I was suspecting above, my method of using sqlalchemy to create the table did not make the timestamp columns tz-aware. Dropped the table created that way, used the db connection script in
Everything seems in order now ! 👍 |
@StephixOne Are you able to help me possibly set this up? If not, no worries! I'm trying to do it similarly for my company. |
@ksession Could you tell me where you're getting stuck? I'm happy to help if I can, but this might be easier over some form of IM. The handiest one I have is Discord: Stephix#0001 |
Honestly from the beginning would be helpful - I was given this project by my team and we are using a script currently but would love to switch to the website form.
…________________________________
From: Rares Stefan <[email protected]>
Sent: Tuesday, April 7, 2020 11:28 AM
To: micthiesen/spotify-my-slack <[email protected]>
Cc: ksession <[email protected]>; Mention <[email protected]>
Subject: Re: [micthiesen/spotify-my-slack] Getting an asyncpg naive/aware datetime subtraction issue (#20)
@ksession<https://github.com/ksession> Could you tell me where you're getting stuck? I'm happy to help if I can, but this might be easier over some form of IM. The handiest one I have is Discord: Stephix#0001
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#20 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABAH4ESCECUU336CKLXDZALRLNPFTANCNFSM4K4IC6LQ>.
|
Hi,
I decided to fork and run this for my company and everything seems in order until I try to connect my Slack, as a user. Basically, this gets thrown:
I've tried to make all the datetime objects in the code timezone-unaware, to see if anything odd was going on there, but that didn't help anything. I realize you're no longer maintaining this, but I thought I'd ask, just in case it's something you've already encountered and had a minute to answer. Thanks !
The text was updated successfully, but these errors were encountered: