diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2021-02-11 00:52:37 -0800 |
---|---|---|
committer | Massimiliano Culpo <massimiliano.culpo@gmail.com> | 2021-02-11 15:30:57 +0100 |
commit | 3b3314802ec33008b2aae75d3606be224c5cb052 (patch) | |
tree | 55a91f198ed81b164bb529e6c5ad97a776e3bdd0 /.gitignore | |
parent | c81ca37dfccba9dd2863f8ec40414e0453bcc983 (diff) | |
download | spack-3b3314802ec33008b2aae75d3606be224c5cb052.tar.gz spack-3b3314802ec33008b2aae75d3606be224c5cb052.tar.bz2 spack-3b3314802ec33008b2aae75d3606be224c5cb052.tar.xz spack-3b3314802ec33008b2aae75d3606be224c5cb052.zip |
database: don't create a date object in `query()` unless it's necessary
`query()` calls `datetime.datetime.fromtimestamp` regardless of whether a
date query is being done. Guard this with an if statement to avoid the
unnecessary work.
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions