filter flavor name when importing cards
This commit is contained in:
		
							parent
							
								
									ad7cc194aa
								
							
						
					
					
						commit
						eec2dc3718
					
				| 
						 | 
				
			
			@ -222,10 +222,6 @@ function determineIfSkip(card) {
 | 
			
		|||
      }
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
  // reskinned card names show in art crop
 | 
			
		||||
  if (card.flavor_name) {
 | 
			
		||||
    return true
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  return false
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -184,7 +184,7 @@ def write_art(art_names, id, index, card):
 | 
			
		|||
 | 
			
		||||
 | 
			
		||||
def to_compact_write_form(smallJson, art_names, response, category):
 | 
			
		||||
    fieldsInCard = ['name', 'image_uris', 'flavor_name',
 | 
			
		||||
    fieldsInCard = ['name', 'image_uris',
 | 
			
		||||
                    'reprint', 'frame_effects', 'digital', 'set_type', 'security_stamp']
 | 
			
		||||
    data = smallJson['data']
 | 
			
		||||
    # write all fields needed in card
 | 
			
		||||
| 
						 | 
				
			
			@ -306,6 +306,9 @@ def filter_card(card, art_names, data):
 | 
			
		|||
    # do not include racist cards
 | 
			
		||||
    if 'content_warning' in card and card['content_warning'] == True:
 | 
			
		||||
        return False
 | 
			
		||||
    # reskinned card names show in art crop
 | 
			
		||||
    if 'flavor_name' in card:
 | 
			
		||||
        return False
 | 
			
		||||
    # do not repeat art
 | 
			
		||||
    digital_holder = -1
 | 
			
		||||
    if 'card_faces' in card:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
		Loading…
	
		Reference in New Issue
	
	Block a user