Skip to content

Commit

Permalink
(remove debug statements and add comments)
Browse files Browse the repository at this point in the history
  • Loading branch information
olivierdalang committed May 28, 2021
1 parent 2bf869f commit 7f9a29f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion pirogue/single_inheritance.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ def __insert_trigger(self) -> str:
CREATE OR REPLACE FUNCTION {vs}.ft_{vn}_insert() RETURNS trigger AS
$BODY$
BEGIN
/* why not sorted ?! */
{insert_parent}
{insert_child}
Expand Down
3 changes: 3 additions & 0 deletions pirogue/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,9 @@ def __column_alias(column: str,


def __column_priority(column: str, columns_on_top: list=[], columns_at_end: list=[]):
"""
Returns a value to sort columns first by priority (on top / at end), then alphabetically
"""
if column in columns_on_top:
return [0, column]
elif column in columns_at_end:
Expand Down

0 comments on commit 7f9a29f

Please sign in to comment.