소스 검색

Add truncation to versioning

Colin Powell 3 년 전
부모
커밋
97632fe958
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      games/utils.py

+ 1 - 1
games/utils.py

@@ -85,7 +85,7 @@ def import_gamelist_file_to_db_for_system(
         if english_patched:
             version_re = re.search ('v(.*?)(?=\))', game_path.lower())
             if version_re:
-                patch_version =  version_re.group(0)
+                patch_version =  version_re.group(0)[:50]
         undub = any(key in game_path.lower() for key in UNDUB_KEYWORDS)
         hack = any(key in game_path.lower() for key in HACK_KEYWORDS)