Skip to content

Conversation

@avelino
Copy link
Member

@avelino avelino commented Feb 28, 2024

fixed: #140

@avelino avelino requested review from vmesel and walison17 February 28, 2024 09:17
Comment on lines 30 to 32
if cleardb:
CompanyContent.query.delete()

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe that all data modification, including row insertion, should be within a transaction to prevent some users from accessing the empty table

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check now pls

avelino and others added 3 commits February 28, 2024 10:35
Co-authored-by: Walison Filipe <walisonfilipe@hotmail.com>
Signed-off-by: Avelino <31996+avelino@users.noreply.github.com>
Signed-off-by: Avelino <31996+avelino@users.noreply.github.com>
@avelino avelino changed the title WIP: load_csv: clear all table rows Feb 28, 2024
@avelino avelino requested a review from walison17 February 29, 2024 12:25
**warning:**
Pyarrow will become a required dependency of pandas in the next major release of pandas (pandas 3.0),
(to allow more performant data types, such as the Arrow string type, and better interoperability with other libraries)
but was not found to be installed on your system.
If this would cause problems for you,
please provide us feedback at pandas-dev/pandas#54466

```py
import pandas as pd
```

Signed-off-by: Avelino <31996+avelino@users.noreply.github.com>
@avelino avelino merged commit d8be90c into main Feb 29, 2024
@avelino avelino deleted the avelino/issue-140 branch February 29, 2024 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants