archesproject / arches

Arches is a web platform for creating, managing, & visualizing geospatial data. Arches was inspired by the needs of the Cultural Heritage community, particularly the widespread need of organizations to build & manage cultural heritage inventories
GNU Affero General Public License v3.0
212 stars 142 forks source link

Fix SyntaxWarning #11055

Closed jacobtylerwalls closed 3 months ago

jacobtylerwalls commented 3 months ago

See recent GitHub actions logs with this warning emitted:

/home/runner/work/arches/arches/arches/app/search/components/sort_results.py:25: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if sort_param is not None and sort_param is not "":

Could possibly be simplified even further to if sort_param:, but would rather keep this scoped smaller / easier to review.