Skip to content

Commit

Permalink
95 ant 1 (#96)
Browse files Browse the repository at this point in the history
* Update file-loader.py

#95

* Update CHANGELOG.md

#95
  • Loading branch information
antaenc authored May 30, 2024
1 parent a1a330f commit 8b64fff
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
[markdownlint](https://dlaa.me/markdownlint/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.3.3] - 2024-05-30

### Changed in 1.3.3

- Ensure RECORD_ID is a string when an integer isn't quoted in the input JSON

## [1.3.2] - 2024-05-22

### Changed in 1.3.2
Expand Down
2 changes: 1 addition & 1 deletion file-loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def add_record(engine, rec_to_add, with_info):
"""Add a single record, returning with info details if --info or SENZING_WITHINFO was specified"""
record_dict = json.loads(rec_to_add)
data_source = record_dict.get("DATA_SOURCE", None)
record_id = record_dict.get("RECORD_ID", None)
record_id = str(record_dict.get("RECORD_ID", ""))

if with_info:
info_response = bytearray()
Expand Down

0 comments on commit 8b64fff

Please sign in to comment.