<commit_before>import json
from django.core.management.base import BaseCommand
from games import models
from accounts.models import User


class Command(BaseCommand):
    def handle(self, *args, **options):
        with open("steamdb.json") as steamdb_file:
            steamdb = json.loads(steamdb_file.read())
        steam_runner = models.Runner.objects.get(slug='steam')
        user = User.objects.get(username='strider')
        for steamapp in steamdb:
            if steamapp['linux_status'] == 'Game Works':
                appid = steamapp['appid']
                name = steamapp['name']
                try:
                    game = models.Game.objects.get(steamid=int(appid))
                except models.Game.DoesNotExist:<commit_msg>Update installer autocreate for games with no icon<commit_after>import json
from django.core.management.base import BaseCommand
from games import models
from accounts.models import User


class Command(BaseCommand):
    def handle(self, *args, **options):
        with open("steamdb.json") as steamdb_file:
            steamdb = json.loads(steamdb_file.read())
        steam_runner = models.Runner.objects.get(slug='steam')
        user = User.objects.get(username='strider')
        for steamapp in steamdb:
            if steamapp['linux_status'].startswith('Game Works'):
                appid = steamapp['appid']
                name = steamapp['name']
                try:
                    game = models.Game.objects.get(steamid=int(appid))
                except models.Game.DoesNotExist:
{'fraction_non_alphanumeric': 0.10529715762273902, 'fraction_numerical': 0.0, 'mean_word_length': 2.5284738041002277, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '825373', 'n_tokens_mistral': 433, 'n_tokens_neox': 424, 'n_words': 99}