Merge lp:~seif/zeitgeist/fix-redundant-statement into lp:zeitgeist/0.1
Proposed by
Seif Lotfy
Status: | Rejected |
---|---|
Rejected by: | Seif Lotfy |
Proposed branch: | lp:~seif/zeitgeist/fix-redundant-statement |
Merge into: | lp:zeitgeist/0.1 |
Diff against target: |
14 lines (+1/-3) 1 file modified
_zeitgeist/engine/main.py (+1/-3) |
To merge this branch: | bzr merge lp:~seif/zeitgeist/fix-redundant-statement |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Markus Korn | Disapprove | ||
Review via email: mp+41751@code.launchpad.net |
Description of the change
Basically I found this statement. For me we could get rid of one of them. Right now using only one statement of both works for all our test cases.
if return_mode == 0:
sql = "SELECT DISTINCT id FROM event_view"
elif return_mode == 1:
sql = "SELECT id FROM event_view"
Do we really need both? In any case here is a little merge proposal
To post a comment you must log in.
Unmerged revisions
- 1637. By Seif Lotfy
-
removed redundant statement
If you are sure that we don't need `DISTINCT` in this query (I have not checked it in detail), you should also remove the `return_mode` argument.