Skip to content
This repository has been archived by the owner on May 14, 2019. It is now read-only.

Fix insert into insert or update #73

Open
Pilen opened this issue Jul 23, 2014 · 0 comments
Open

Fix insert into insert or update #73

Pilen opened this issue Jul 23, 2014 · 0 comments

Comments

@Pilen
Copy link
Member

Pilen commented Jul 23, 2014

line 298 in bookkeeper.py lies.

        for debtor, share_string, share in debts:
            # NOTE: insert automaticly replaces old entries
            data.execute("INSERT INTO Debts(e_id, debtor, share_string, share) VALUES (?, ?, ?, ?)", e_id, debtor, share_string, share)

Insert no longer replaces the value after we updated to postgres.

I couldn't find any simple build in way to do this (At least not simpler than doing it in the application layer).

@Pilen Pilen added bug labels Jul 23, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant