Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

Commit

Permalink
Fix pandas copy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
major committed Apr 3, 2023
1 parent 8c89202 commit 3e99801
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ def filter_fedora_images(version=None):
https://regex101.com/r/oyOo7A/1
"""
app.logger.info("Filtering image data...")
df = app.images[app.images["Name"].str.contains("Fedora-Cloud-Base")]
df = app.images[app.images["Name"].str.contains("Fedora-Cloud-Base")].copy(
deep=True
)
regex_string = (
r"Fedora-Cloud-Base-(\d+[_]?\w+?|Rawhide)-([0-9n\.]+)\."
r"(\w+)-(\w+)-(\w+-\w+-[0-9]+)-([a-z0-9]+)-(\d)"
Expand Down
Binary file removed app/__pycache__/__init__.cpython-311.pyc
Binary file not shown.

0 comments on commit 3e99801

Please sign in to comment.