{"id":22848819,"url":"https://github.com/db0/lemmy-application-sorting","last_synced_at":"2025-09-02T23:44:12.026Z","repository":{"id":266791943,"uuid":"897892561","full_name":"db0/lemmy-application-sorting","owner":"db0","description":"Sorts lemmy.dbzer0.com application answers into categories ","archived":false,"fork":false,"pushed_at":"2025-02-25T10:52:42.000Z","size":45,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T12:55:36.564Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/db0.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-03T12:28:22.000Z","updated_at":"2025-02-25T10:52:45.000Z","dependencies_parsed_at":"2024-12-06T06:29:38.935Z","dependency_job_id":"cdb5245c-711c-4af5-a460-f1d71c3c57a8","html_url":"https://github.com/db0/lemmy-application-sorting","commit_stats":null,"previous_names":["db0/lemmy-application-sorting"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/db0%2Flemmy-application-sorting","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/db0%2Flemmy-application-sorting/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/db0%2Flemmy-application-sorting/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/db0%2Flemmy-application-sorting/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/db0","download_url":"https://codeload.github.com/db0/lemmy-application-sorting/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246423727,"owners_count":20774820,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-13T04:14:31.142Z","updated_at":"2025-03-31T06:12:59.200Z","avatar_url":"https://github.com/db0.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lemmy-application-sorting\nSorts lemmy.dbzer0.com application answers into categories \n\n# DB extraction\n\n```sql\n\\COPY (SELECT json_build_object('answer', answer)::text FROM registration_application) TO '/tmp/registration_answers.json';\n```\n\nwith username\n\n```sql\n\\COPY (\n    SELECT json_build_object(\n        'answer', registration_application.answer,\n        'username', person.name\n    )::text\n    FROM registration_application\n    JOIN local_user ON registration_application.local_user_id = local_user.id\n    JOIN person ON local_user.person_id = person.id\n    WHERE local_user.accepted_application = true\n    ORDER BY registration_application.published ASC\n) TO '/tmp/registration_answers.json';\n```\n\n\nearly birds\n\n```sql\n\\COPY (\n    SELECT DISTINCT json_build_object(\n        'username', person.name\n    )::text\n    FROM person\n    JOIN local_user ON person.id = local_user.person_id\n    LEFT JOIN registration_application ON local_user.id = registration_application.local_user_id\n    WHERE registration_application.id IS NULL\n) TO '/tmp/registration_answers_early_birds.json';\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdb0%2Flemmy-application-sorting","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdb0%2Flemmy-application-sorting","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdb0%2Flemmy-application-sorting/lists"}