{"action":"created","issue":{"url":"https://api.github.com/repos/danielquinn/paperless/issues/131","repository_url":"https://api.github.com/repos/danielquinn/paperless","labels_url":"https://api.github.com/repos/danielquinn/paperless/issues/131/labels{/name}","comments_url":"https://api.github.com/repos/danielquinn/paperless/issues/131/comments","events_url":"https://api.github.com/repos/danielquinn/paperless/issues/131/events","html_url":"https://github.com/danielquinn/paperless/issues/131","id":164130660,"number":131,"title":"Consumer Error and deleted Documents","user":{"login":"Ulli2k","id":14141949,"avatar_url":"https://avatars.githubusercontent.com/u/14141949?v=3","gravatar_id":"","url":"https://api.github.com/users/Ulli2k","html_url":"https://github.com/Ulli2k","followers_url":"https://api.github.com/users/Ulli2k/followers","following_url":"https://api.github.com/users/Ulli2k/following{/other_user}","gists_url":"https://api.github.com/users/Ulli2k/gists{/gist_id}","starred_url":"https://api.github.com/users/Ulli2k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ulli2k/subscriptions","organizations_url":"https://api.github.com/users/Ulli2k/orgs","repos_url":"https://api.github.com/users/Ulli2k/repos","events_url":"https://api.github.com/users/Ulli2k/events{/privacy}","received_events_url":"https://api.github.com/users/Ulli2k/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/danielquinn/paperless/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-07-06T17:28:54Z","updated_at":"2016-08-20T13:12:38Z","closed_at":null,"body":"I have to issues/questions:\r\n\r\n1) During the consumption of my pdf files I always get the following error msg:\r\n[image2 @ 0x8baff00] Encoder did not produce proper pts, making some up.\r\nWhat did I wrong?\r\n\r\n2) after the deletion of documents in the django UI the documents are still listed in the folders:\r\npaperless/media/documents/originals\r\npaperless/media/documents/thumbnails\r\nIs it a Bug?"},"comment":{"url":"https://api.github.com/repos/danielquinn/paperless/issues/comments/241199420","html_url":"https://github.com/danielquinn/paperless/issues/131#issuecomment-241199420","issue_url":"https://api.github.com/repos/danielquinn/paperless/issues/131","id":241199420,"user":{"login":"danielquinn","id":218205,"avatar_url":"https://avatars.githubusercontent.com/u/218205?v=3","gravatar_id":"","url":"https://api.github.com/users/danielquinn","html_url":"https://github.com/danielquinn","followers_url":"https://api.github.com/users/danielquinn/followers","following_url":"https://api.github.com/users/danielquinn/following{/other_user}","gists_url":"https://api.github.com/users/danielquinn/gists{/gist_id}","starred_url":"https://api.github.com/users/danielquinn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielquinn/subscriptions","organizations_url":"https://api.github.com/users/danielquinn/orgs","repos_url":"https://api.github.com/users/danielquinn/repos","events_url":"https://api.github.com/users/danielquinn/events{/privacy}","received_events_url":"https://api.github.com/users/danielquinn/received_events","type":"User","site_admin":false},"created_at":"2016-08-20T13:12:38Z","updated_at":"2016-08-20T13:12:38Z","body":"Alright I've just pushed a fix to account for thumbnail deletion as well, so that should fixed for you as soon as you do a `git pull` (don't forget to migrate as well if you haven't already).\r\n\r\nThe new command to run to find files to delete is:\r\n\r\n```python\r\nfor i in (set(range(1, Document.objects.order_by(\"-pk\").values_list(\"pk\", flat=True)[0])) - set(Document.objects.values_list(\"pk\", flat=True))):\r\n     print(Document(id=i, file_type=\"*\").source_path)\r\n     print(Document(id=i, file_type=\"*\").thumbnail_path)\r\n```\r\n\r\nNote however that this will just give you the \"gaps\" in the database, and doesn't do any actual checking for the existence of files on your disk.  Therefore, @Ulli2k's note that after file deletion the list still shows the same is totally expected.\r\n\r\nI think this is good now, so I'm closing this ticket.  If someone finds a bug though, feel free to re-open."}}
{"actor":{"display_login":"danielquinn"}}