Compare commits
No commits in common. "7f491ef632e553b7630eac40832f461607da48ae" and "7e6b369b48a5e65ca97eb9a8c99085e2b6012791" have entirely different histories.
7f491ef632
...
7e6b369b48
@ -66,13 +66,6 @@ namespace silverworker_discord.Conversion
|
|||||||
private static void loadCurrency()
|
private static void loadCurrency()
|
||||||
{
|
{
|
||||||
Console.WriteLine("loading currency exchange data.");
|
Console.WriteLine("loading currency exchange data.");
|
||||||
if(currencyConf != null)
|
|
||||||
{
|
|
||||||
knownConversions.RemoveAll(kc => kc.Item1 == currencyConf.Base);
|
|
||||||
knownAliases.Remove(knownAliases.FirstOrDefault(kvp => kvp.Value == currencyConf.Base).Key);
|
|
||||||
foreach (var rate in currencyConf.rates)
|
|
||||||
knownAliases.Remove(knownAliases.FirstOrDefault(kvp => kvp.Value == rate.Key).Key);
|
|
||||||
}
|
|
||||||
if (File.Exists(currencyPath))
|
if (File.Exists(currencyPath))
|
||||||
{
|
{
|
||||||
currencyConf = JsonConvert.DeserializeObject<ExchangePairs>(File.ReadAllText(currencyPath));
|
currencyConf = JsonConvert.DeserializeObject<ExchangePairs>(File.ReadAllText(currencyPath));
|
||||||
|
@ -25,9 +25,6 @@
|
|||||||
<None Update="assets/ekgblip.png">
|
<None Update="assets/ekgblip.png">
|
||||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
</None>
|
</None>
|
||||||
<None Update="assets/conversion.json">
|
|
||||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
|
||||||
</None>
|
|
||||||
<None Update="appsettings.json">
|
<None Update="appsettings.json">
|
||||||
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
|
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
|
||||||
</None>
|
</None>
|
||||||
|
Reference in New Issue
Block a user