Fixed bug in <RowValueFilter> update

This commit is contained in:
Ross Scroggs
2026-04-26 19:11:06 -07:00
parent 550dd6b947
commit e56b56612f
2 changed files with 14 additions and 3 deletions

View File

@@ -1,3 +1,14 @@
7.41.03
Fixed bug in the following:
Added the following to `<RowValueFilter>` used in CSV input/output row filtering; these are
synonyms for `count` and `countrange`.
```
[(any|all):]number<Operator><Number>|
[(any|all):]numberrange!=<Number>/<Number>|
[(any|all):]numberrange=<Number>/<Number>|
```
7.41.02
Added option `ownername` to `gam info|print courses` to have GAM display the course owners full name;

View File

@@ -25,7 +25,7 @@ https://github.com/GAM-team/GAM/wiki
"""
__author__ = 'GAM Team <google-apps-manager@googlegroups.com>'
__version__ = '7.41.02'
__version__ = '7.41.03'
__license__ = 'Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)'
# pylint: disable=wrong-import-position
@@ -7837,10 +7837,10 @@ def RowFilterMatch(row, titlesList, rowFilter, rowFilterModeAll, rowDropFilter,
elif filterVal[2] == 'timeofdayrange':
if rowTimeOfDayRangeFilterMatch(filterVal[3], filterVal[4], filterVal[5]):
return True
elif filterVal[2] == 'count':
elif filterVal[2] in {'count', 'number'}:
if rowCountFilterMatch(filterVal[3], filterVal[4]):
return True
elif filterVal[2] == 'countrange':
elif filterVal[2] in {'countrange', 'numberrange'}:
if rowCountRangeFilterMatch(filterVal[3], filterVal[4], filterVal[5]):
return True
elif filterVal[2] == 'length':