Skip to content

Commit

Permalink
fixed version queryset
Browse files Browse the repository at this point in the history
  • Loading branch information
yurtaev committed Oct 9, 2014
1 parent c0bcbcd commit 4741dc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion omaha_server/omaha/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def on_app(apps_list, app, os, channel):
platform__name=platform,
channel__name=channel)
if version:
version_qs.filter(version__gt=version)
version_qs = version_qs.filter(version__gt=version)
version_qs = version_qs.prefetch_related("actions")
version = version_qs.latest('version')
actions = reduce(on_action, version.actions.all(), [])
Expand Down

0 comments on commit 4741dc9

Please sign in to comment.