Closed github-actions[bot] closed 2 years ago
udělat to obecně ne jen pro dpp
https://github.com/UniversalScientificTechnologies/OpenIntranet/blob/170f6ceb52291c375f4e53a7175526ef9adf628c/src/OpenIntranet/plugins/helpers/database_user.py#L36
{"$match": {"_id": user_id}}, {"$unwind": "$contracts"}, #{"$match": {"contracts.type": "dpp"}}, # TODO udělat to obecně ne jen pro dpp {"$sort": {f"contracts.{sort_by}": -1}}, {"$group": {"_id": "$_id", "contracts": {"$push": "$contracts"}}} ])
da969a5c5551538adbce37e48b3e56143e47b6b0
Closed in f93ade5ce9ee70c750ede8127de2c08f5f60cce4
udělat to obecně ne jen pro dpp
https://github.com/UniversalScientificTechnologies/OpenIntranet/blob/170f6ceb52291c375f4e53a7175526ef9adf628c/src/OpenIntranet/plugins/helpers/database_user.py#L36
da969a5c5551538adbce37e48b3e56143e47b6b0