Skip to content

Commit 15a8be5

Browse files
committed
Update interface, changelog, version.py
1 parent fde0499 commit 15a8be5

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Changelog
22

33
Observes [Semantic Versioning](https://semver.org/spec/v2.0.0.html) standard and [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) convention.
4-
## [0.2.3] - 2021-11-17
4+
## [0.2.3] - 2021-11-18
55
### Added
66
- Support for plot component PR #155
77
- Fetch argument specification in `dj_query` PR #155

pharus/interface.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,7 @@ def _fetch_records(query,
134134
elif not fetch_args:
135135
fetch_args = query.heading.non_blobs
136136
else:
137-
new_attributes = dict()
138-
for arg in fetch_args:
139-
new_attributes[arg] = attributes[arg]
140-
attributes = new_attributes
137+
attributes = {k: v for k, v in attributes.items() if k in fetch_args}
141138

142139
non_blobs_rows = query_restricted.fetch(*fetch_args, as_dict=True,
143140
limit=limit, offset=(page-1)*limit,

pharus/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
"""Package metadata."""
2-
__version__ = '0.2.2'
2+
__version__ = '0.2.3'

0 commit comments

Comments
 (0)