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

Duplicates not moved/deleted on DELETE button click #17

Open
pdoubek opened this issue Dec 16, 2017 · 0 comments
Open

Duplicates not moved/deleted on DELETE button click #17

pdoubek opened this issue Dec 16, 2017 · 0 comments

Comments

@pdoubek
Copy link

pdoubek commented Dec 16, 2017

First off, thanks for making this awesome script public. I started writing something to do this, but my scripting skills are inadequate to do as nice a job as what you've done. This may not be an "issue" but possibly a misunderstanding on how the app should behave.

I built on Fedora26 x86_64, Python 3.6.2, Flask 0.12.2, mongod version 3.4.6. I'm able to add a directory, do the "find", and generate the Flask web page with legit duplicates. When I click the DELETE button on a file my terminal under which Python is running displays
"127.0.0.1 - - [16/Dec/2017 12:20:18] "OPTIONS /picture/" and a valid path to the image file, but the file doesn't get moved to the defined Trash directory. I dropped a couple extra "cprint" statements in to see if I could observe what's happening. It looks to me as if the
@app.route('/picture/everything:file_name', methods=['DELETE'])
should call the "delete_picture(file_name, db) function but putting cprint statement above that call does not produce any output. I get no other output in my terminal window and I'm not finding that the script is logging information anywhere else.

I'll continue to read up on python and try to understand the flow, but I suspect I'm missing something basic or not launching it properly, or maybe my python version is not behaving as expected.

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

1 participant