Skip to content

Commit

Permalink
lil nicities
Browse files Browse the repository at this point in the history
  • Loading branch information
aaxelb committed Aug 17, 2023
1 parent 1b27ba1 commit 5182ad5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions share/search/search_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ def _split_str(cls, text: str) -> typing.Iterable['Textsegment']:

@classmethod
def _from_fuzzy_text(cls, text_chunk: str, is_openended: bool):
if text_chunk == '*':
return # special case for COS employees used to the old search page
_all_wordgroups = (
(_each_word_negated, list(_words))
for (_each_word_negated, _words) in itertools.groupby(
Expand Down
4 changes: 2 additions & 2 deletions trove/digestive_tract.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def swallow(
if not isinstance(record, str):
raise DigestiveError('datum must be a string')
_source_config = share_db.SourceConfig.objects.get_or_create_push_config(from_user)
_suid, _suid_created = share_db.SourceUniqueIdentifier.objects.update_or_create(
_suid, _suid_created = share_db.SourceUniqueIdentifier.objects.get_or_create(
source_config=_source_config,
identifier=record_identifier,
)
Expand Down Expand Up @@ -86,7 +86,7 @@ def swallow__sharev2_legacy(
share_db.SourceConfig.objects
.get_or_create_push_config(from_user, transformer_key)
)
_suid, _suid_created = share_db.SourceUniqueIdentifier.objects.update_or_create(
_suid, _suid_created = share_db.SourceUniqueIdentifier.objects.get_or_create(
source_config=_source_config,
identifier=record_identifier,
)
Expand Down

0 comments on commit 5182ad5

Please sign in to comment.