fix/prop-id-dupes (#45)

This commit is contained in:
drethereum 2023-11-17 08:57:08 -07:00 committed by GitHub
parent 62b20c186c
commit b7e2727c38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,3 +39,7 @@ WHERE
{{ this }}
)
{% endif %}
qualify(ROW_NUMBER() over (PARTITION BY proposal_id
ORDER BY
p._inserted_timestamp DESC)) = 1