mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	compare-settings-to-template: Handle prod_settings_template renaming.
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							b6b6faa404
						
					
				
				
					commit
					3476f63dca
				
			@@ -38,9 +38,13 @@ while url is not None:
 | 
			
		||||
        if not re.match(r"^\d+\.\d+(\.\d+)?$", tag):
 | 
			
		||||
            continue
 | 
			
		||||
 | 
			
		||||
        filename = "zproject/prod_settings_template.py"
 | 
			
		||||
        if [int(x) for x in tag.split(".")] < [1, 4]:
 | 
			
		||||
            filename = "zproject/local_settings_template.py"
 | 
			
		||||
 | 
			
		||||
        print(f"  - {tag}")
 | 
			
		||||
        resp = requests.get(
 | 
			
		||||
            f"https://raw.githubusercontent.com/zulip/zulip/{tag}/zproject/prod_settings_template.py",
 | 
			
		||||
            f"https://raw.githubusercontent.com/zulip/zulip/{tag}/{filename}",
 | 
			
		||||
        )
 | 
			
		||||
        if resp.status_code == 200:
 | 
			
		||||
            templ[tag] = resp.content.decode()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user