Skip to content
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

Why media are sent in an other database ? #12

Open
alexisheras opened this issue Jun 22, 2022 · 3 comments
Open

Why media are sent in an other database ? #12

alexisheras opened this issue Jun 22, 2022 · 3 comments

Comments

@alexisheras
Copy link

Hi Mathieu,

We use your script to import data of the Ariege butterflies atlas and we're encountering an issue with fonction push_media_to_central. The media are imported in postgres but they're in a different database from submissions_data. We can't find where and why this happen in the script.
Do you have any suggestion to help us ?
Thank you.

@mathieubossaert
Copy link
Owner

mathieubossaert commented Jun 22, 2022

Hi @alexisheras ,
what do you want to achieve ?

  • Send a media file to Central (for example like a csv list to use as an external dataset for a select_one_from_file) ?
    -> This is the goal of the function you tried.

  • Or get media that have been collected with Collect on your own server ?
    -> To do that you need to use the get_file_from_central() function.

@alexisheras
Copy link
Author

Sorry, I was mistaken on the name of the fonction. Indeed, it's get_file_from_central() function.

@mathieubossaert
Copy link
Owner

push not pull ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants