Showing 1 of 1 files from the diff.

@@ -277,7 +277,7 @@
Loading
277 277
            VALUES (:fingerprint, :time, :status, :url, json(:headers), :body)
278 278
            ''',
279 279
            {'fingerprint': fingerprint,
280 -
             'time': time.time(),
280 +
             'time': time(),
281 281
             'status': response.status,  # an integer (right???)
282 282
             'url': response.url,        # a string (right???)
283 283
             'headers': json.dumps(
@@ -295,7 +295,7 @@
Loading
295 295
            (ts,), = conn.execute('SELECT time FROM pages WHERE fingerprint = ?', (fingerprint,)).fetchall()
296 296
        except ValueError:
297 297
            return              # not in the cache
298 -
        if 0 < self.expiration_secs < (time.time() - float(ts)):
298 +
        if 0 < self.expiration_secs < (time() - float(ts)):
299 299
            # Clean up the database, don't just grow it unboundedly.
300 300
            conn.execute('DELETE FROM pages WHERE fingerprint = ?', (fingerprint,))
301 301
            return              # expired, i.e. nothing in the cache
Files Coverage
scrapy 87.57%
Project Totals (160 files) 87.57%
9744.14
TRAVIS_PYTHON_VERSION=3.8
TRAVIS_OS_NAME=linux
TOXENV=asyncio
9743.12
TRAVIS_PYTHON_VERSION=3.8
TRAVIS_OS_NAME=linux
TOXENV=py
9743.11
TRAVIS_PYTHON_VERSION=3.7
TRAVIS_OS_NAME=linux
TOXENV=py
9743.14
TRAVIS_PYTHON_VERSION=3.8
TRAVIS_OS_NAME=linux
TOXENV=asyncio
9743.13
TRAVIS_PYTHON_VERSION=3.8
TRAVIS_OS_NAME=linux
TOXENV=extra-deps
9744.7
TRAVIS_PYTHON_VERSION=3.6.1
TRAVIS_OS_NAME=linux
TOXENV=asyncio-pinned
9744.6
TRAVIS_PYTHON_VERSION=3.6.1
TRAVIS_OS_NAME=linux
TOXENV=pinned
9744.11
TRAVIS_PYTHON_VERSION=3.7
TRAVIS_OS_NAME=linux
TOXENV=py
9744.9
TRAVIS_PYTHON_VERSION=3.6
TRAVIS_OS_NAME=linux
TOXENV=py
9744.13
TRAVIS_PYTHON_VERSION=3.8
TRAVIS_OS_NAME=linux
TOXENV=extra-deps
9744.12
TRAVIS_PYTHON_VERSION=3.8
TRAVIS_OS_NAME=linux
TOXENV=py
1
comment:
2
  layout: "header, diff, tree"
3

4
coverage:
5
  status:
6
    project: false
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading